From 5ed2a2f666707e579e18f2890ab89b7cc6f717c3 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Tue, 6 Jun 2023 11:21:19 -0500 Subject: chore: remove docs example (#7306) --- examples/docs/src/pages/[...slug].astro | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 examples/docs/src/pages/[...slug].astro (limited to 'examples/docs/src/pages/[...slug].astro') diff --git a/examples/docs/src/pages/[...slug].astro b/examples/docs/src/pages/[...slug].astro deleted file mode 100644 index a59e4bc2a..000000000 --- a/examples/docs/src/pages/[...slug].astro +++ /dev/null @@ -1,22 +0,0 @@ ---- -import { CollectionEntry, getCollection } from 'astro:content'; -import MainLayout from '../layouts/MainLayout.astro'; - -export async function getStaticPaths() { - const docs = await getCollection('docs'); - return docs.map((entry) => ({ - params: { - slug: entry.slug, - }, - props: entry, - })); -} -type Props = CollectionEntry<'docs'>; - -const post = Astro.props; -const { Content, headings } = await post.render(); ---- - - - - -- cgit v1.2.3